Document Solutions for PDF
DS.Documents.Imaging Assembly / GrapeCity.Documents.Imaging Namespace / GcBitmap Class / Load Method / Load(Stream,Int32,Nullable<Rectangle>) Method
The source stream.
Index of an image frame to read, pass 0 for image formats not supporting multiple frames.
Clipping rectangle of the image to be loaded.

In This Topic
    Load(Stream,Int32,Nullable<Rectangle>) Method
    In This Topic
    Loads the image from a stream. JPEG, PNG, WEBP, GIF, BMP, TIFF, ICO, JPEG 2000 formats are supported.
    Syntax
    'Declaration
     
    Public Overloads Sub Load( _
       ByVal stream As System.IO.Stream, _
       Optional ByVal frameIndex As System.Integer, _
       Optional ByVal imageRect As System.Nullable(Of Rectangle) _
    ) 
    public void Load( 
       System.IO.Stream stream,
       System.int frameIndex,
       System.Nullable<Rectangle> imageRect
    )

    Parameters

    stream
    The source stream.
    frameIndex
    Index of an image frame to read, pass 0 for image formats not supporting multiple frames.
    imageRect
    Clipping rectangle of the image to be loaded.
    See Also